﻿using Unity.Credentials;

namespace Unity.Connections
{
    public interface IUnityConnectionFactory
    {
        bool IsSupportPull();
        bool IsSupportPush();

        IUnityConsumer NewPushConsumer(IUnityCredentials credentials, IUnityCallback callback);
        IUnityConsumer NewPullConsumer(IUnityCredentials credentials);

        IUnityProducer NewProducer(IUnityCredentials credentials);
    }
}
